sudo systemctl start apache2 将此命令用作sudo以启动Apache服务器。
sudo systemctl stop apache2 将此命令用作sudo,以便在Apache服务器处于启动模式时停止它。
sudo systemctl restart apache2 将此命令用作sudo以便停止然后再次启动Apache服务。
sudo systemctl reload apache2 将此命令用作sudo,以便在不重新启动连接的情况下应用配置更改。
sudo systemctl启用apache2 将此命令用作sudo,以便在每次启动系统时启用Apache。
sudo systemctl disable apache2 将Apache设置为每次启动系统时启动